﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace MyBehaviorTree
{
    public class BehaviorTree
    {
        public Behavior root;

        public BlackBoard blackBoard;
        public BehaviorTree() {
            blackBoard = new BlackBoard();
        }
        public BehaviorTree(Behavior root):base()
        {
            this.root = root;
        }

        public void run()
        {
            root.run();
        }
    }
}
